<template>
  <div class="container">
    <el-form :model="rejectList" ref="reject" size="normal" label-position="top">
      <el-row :gutter="20">
        <el-col :span="12" :offset="0">
          <el-form-item label="驳回单位">
            <el-input v-model="rejectList.check_name"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12" :offset="0">
          <el-form-item label="驳回时间">
            <el-date-picker v-model="rejectList.create_date" type="year" size="normal" format="yyyy-MM-dd"
              placeholder="选择日期时间" class="wid">
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24" :offset="0">
          <el-form-item label="驳回信息">
            <el-input v-model="rejectList.message" type="textarea" :rows="4"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'Reject',
  components: {

  },
  props: {
    rejectParams: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data () {
    return {
      rejectList: {}
    }
  },
  created () {

  },
  mounted () {
    if (this.rejectParams.id) {
      this.init()
    }
  },
  methods: {
    async init () {
      const res = await this.$http('inputReject', {
        id: this.rejectParams.id,
        status: this.rejectParams.status
      })
      this.rejectList = res
    }
  },
  computed: {

  }
}
</script>
<style lang='scss' scoped>
</style>
